package com.dhh.web.modules.user.repo;

import com.dhh.web.modules.user.domain.Perms;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.Optional;
import java.util.Set;

/**
 * @Auther: dhh
 * @Date: 2018/11/22 14:54
 * @Email: fzlinjianhui@163.com
 * @Description:
 */
public interface PermsRepo extends JpaRepository<Perms,String> {

    Optional<Perms> findByName(String name);

    Set<Perms> findAllByNameIn(List<String> names);

}
